import Vue from "vue";
import App from "./App.vue";
import router from "./router";
import store from "./store";

Vue.config.productionTip = false;

Vue.filter("filnums", function(val) {
  return val + "$";
});

Vue.filter("filtime", function(val) {
  console.log(val);
  var year = val.getFullYear();
  var month = val.getMonth() + 1;
  var day = val.getDay();

  var hour = val.getHours();
  var minu = val.getMinutes();
  var seconds = val.getSeconds();

  return `${year}-${month}-${day} ${hour}:${minu}:${seconds}`;
});

new Vue({
  router,
  store,
  render: (h) => h(App),
}).$mount("#app");
